home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000375_nospam@killspam.org_Wed Sep 1 09:30:35 2004.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Path: newsmaster.cc.columbia.edu!newsfeed1.nycmny01.us.to.verio.net!newspeer1.stngva01.us.to.verio.net!verio!news.maxwell.syr.edu!elnk-pas-nf1!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsread3.news.atl.earthlink.net.POSTED!9477d3c5!not-for-mail
  2. From: <nospam@killspam.org>
  3. Newsgroups: comp.protocols.kermit.misc
  4. References: <689dd88f.0408311345.474a3235@posting.google.com>
  5. Subject: Re: Checking for
  6. Lines: 43
  7. X-Priority: 3
  8. X-MSMail-Priority: Normal
  9. X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
  10. X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
  11. Message-ID: <apaZc.7515$JT3.4654@newsread3.news.atl.earthlink.net>
  12. Date: Wed, 01 Sep 2004 02:24:06 GMT
  13. NNTP-Posting-Host: 24.148.161.18
  14. X-Complaints-To: abuse@earthlink.net
  15. X-Trace: newsread3.news.atl.earthlink.net 1094005446 24.148.161.18 (Tue, 31 Aug 2004 19:24:06 PDT)
  16. NNTP-Posting-Date: Tue, 31 Aug 2004 19:24:06 PDT
  17. Organization: EarthLink Inc. -- http://www.EarthLink.net
  18. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15140
  19.  
  20.  
  21. "Shruti" <gandhishruti@gmail.com> wrote
  22. > i want to check if the directory exists. If it does not then I
  23. > want to exit.
  24. *******************************************************
  25.  
  26. you don't mention anything about versions, this quick test
  27. script  was tested on 2.1.3 of k95, connecting to some 8.0
  28. unix build.  If fail works just fine.
  29.  
  30. my script:
  31. ***************************************
  32. rdir /home
  33. if fail stop 1 no home
  34. rcd /home
  35.  
  36. rdir /home/xxx
  37. if fail stop 2 no xxx
  38. rcd /home/xxx
  39. *******************************************
  40. My Results:::  ( note the no xxx line at the bottom as the if fail returns
  41. true.)
  42. [C:\Documents and Settings\boz\] K-95> take c:/bat/rpwd.ksc
  43.  Press the X or E key to cancel.
  44. drwx------      4096  2004-08-31 09:07:19  /home/apeasy_wpa
  45. drwx------      4096  2004-01-19 09:41:26  /home/boz
  46. drw-------      4096  2004-08-04 08:01:33  /home/data
  47. -rw-------        12  2004-08-14 11:42:13  /home/diskspace
  48. drwx------      4096  2004-08-31 08:11:17  /home/nemclab
  49. drwx------      4096  2004-04-23 08:58:55  /home/newark
  50. drwx------      4096  2004-08-31 09:08:15  /home/nh_wpa
  51. drwx------      4096  2003-03-31 12:34:53  /home/nhmrc
  52. drwx------      4096  2004-08-31 09:09:34  /home/stp
  53. drwx------      4096  2004-08-14 11:41:51  /home/test
  54. /home
  55.  Press the X or E key to cancel.
  56.  
  57. ?No files match
  58. no xxx
  59. ****************************************************************
  60.  
  61.  
  62.